<div id="ctxPlayerManage">
    <h4>Managers Management</h4>

    <form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=admin/managers">
        <div class="data">
            <table id="column_table_hook">
                <thead id="column_tr_hook">
                <tr>
                    <th>NO.</th>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Password</th>
                    <th>Sex</th>
                    <th>Date of birth</th>
                    <th>Citizenship</th>
                    <th>Current Residence</th>
                    <th>Action</th>
                </tr>
                </thead>
                <tbody>
                <?php $index = 0; $rightClass = ''; ?>
                <?php foreach ($list as $manager): ?>
                    <?php
                    $index = $index + 1;
                    if ($index % 4 == 0) {
                        $rightClass = 'odd';
                    } else {
                        $rightClass = '';
                    }
                    ?>
                <tr class="<?php echo $rightClass;?>">
                    <td><?php echo $index ?>.</td>
                    <td><?php echo $manager->person->firstname ?></td>
                    <td><?php echo $manager->person->lastname ?></td>
                    <td>...</td>
                    <td><?php echo $manager->person->sex ?></td>
                    <td><?php echo $manager->person->birthdate ?></td>
                    <td><?php echo $manager->person->citizenship->name ?></td>
                    <td><?php echo $manager->person->residence->name ?></td>
                    <td><STRONG><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=admin/managerDelete&id=<?php echo $manager->id ?>" onclick="return confirm('are you sure you want to delete this item?');">DELETE</a></STRONG></td>
                </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </form>
    <h4 id="playersinfo_pagelinks"></h4>
</div>
